package ssm.service;

import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;
import ssm.entity.book;
import ssm.entity.type;

import java.util.List;

@Transactional
public interface BookService {

    @Transactional(readOnly = true)
    PageInfo<book> findAll(int pageNum, int pageSize);

    @Transactional(readOnly = true)
    List<type> findAlltypes();
}
